/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package post2;
import java.util.Date;
import java.util.Date;
/**
 *
 * @author Danny
 */
public class TransactionHeader {
    Date dateTime;
    String customerName;
    
    public TransactionHeader(){
        
    }
    
    public TransactionHeader(Date date, String name){
        dateTime = date;
        customerName = name;
    }
    
    public TransactionHeader(Date date) {
        dateTime = date;
    }
    
    public String getDateTime(){
        return dateTime.toString();
    }
    
    public void setDateTime(Date date){
        dateTime = date;
    }
    
    public void setCustomerName(String name) {
        this.customerName = name;
    }
    
    public String getCustomerName(){
        return customerName;
    }
}
